package com.efuture.servlet.baseuse;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebServlet;

import java.io.IOException;

/**
 * @description: 演示Servlet注解
 * @author zhaoshanshan
 * @date 2021/10/2 7:13 下午
 * @version 1.0
 */
@WebServlet("/ServletAnnotations")
public class ServletAnnotations implements Servlet {


    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("演示Servlet注解");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
